package cn.trigram.example.designpattern.fsm.state;


import cn.trigram.example.designpattern.fsm.action.Action;

/**
 * 抽象状态，状态本身也有行为
 */
public  abstract  class AbstractState implements Action {
  protected String name;

  protected AbstractState(String name) {
    this.name = name;
  }

  public String getName() {

    return name;
  }

  public void setName(String name) {

    this.name = name;
  }

}